<p id="notice"><%= notice %></p>

<p>
  <b>Mssv:</b>
  <%= @sinhvien1.mssv %>
</p>

<p>
  <b>Name:</b>
  <%= @sinhvien1.name %>
</p>

<p>
  <b>Birthday:</b>
  <%= @sinhvien1.birthday %>
</p>

<p>
  <b>Email:</b>
  <%= @sinhvien1.email %>
</p>



<h2>Events</h2>
<% @sinhvien1.events.each do |event| %>
    <p>
      <b>Ngay</b>
      <%= event.ngay %>
    </p>

    <p>
      <b>Ten Su Kien</b>
      <%= event.ten_su_kien %>
    </p>
    <p>
      <b>Noi dung</b>
      <%= event.noi_dung %>
    </p>

    <p>
      <b>Danh gia</b>
      <%= event.danh_gia %>
    </p>



    <p>
      <%= link_to 'Destroy Event', [event.sinhvien1, event],
                  :confirm => 'Are you sure?',
                  :method => :delete %>
    </p>
<% end %>


<h2>Add an Event:</h2>
<%= form_for([@sinhvien1, @sinhvien1.events.build]) do |f| %>
    <div class="field">
      <%= f.label :ngay %><br />
      <%= f.text_field :ngay %>
    </div>
    <div class="field">
      <%= f.label :ten_su_kien %><br />
      <%= f.text_field :ten_su_kien %>
    </div>

    <div class="field">
      <%= f.label :noi_dung %><br />
      <%= f.text_area :noi_dung %>
    </div>

    <div class="field">
      <%= f.label :danh_gia %><br />
      <%= f.text_area :danh_gia %>
    </div>

    <div class="actions">
      <%= f.submit %>
    </div>
<% end %>





<%= link_to 'Edit', edit_sinhvien1_path(@sinhvien1) %> |
<%= link_to 'Back', sinhvien1s_path %>
